class Thumbnail < ActiveRecord::Base
  validates :name, :uniqueness => true
  
  def self.get(name = "small")
    Thumbnail.where("name = '#{name}'").first
  end
end
